package com.itggm.mapper;

import com.itggm.pojo.Member;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface MemberMapper {
    List<Member> page(@Param("memberName") String memberName, @Param("level") String level);

    Member selectMemberByMemberName(String memberName);

    void addMember(Member member);

    Member selectMemberByIdCard(String idCard);

    void updateMember(Member member);

    void deleteMember(@Param("ids") List<Integer> ids);

    void registerMember(Member member);

    Integer selectDashboardData();

    List<Map<String, Integer>> selectLineData();

    List<Map<String, Integer>> selectRoseData();
}
